package com.richfit.cuba.web.config.test.service.task;

import java.time.LocalDateTime;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.richfit.cuba.modular.IScanService;

/**
 * ScheduleTask: 定时任务的服务
 *
 * @date :  2018/2/23    16:29
 **/
@Service
@Transactional
public class ScheduleTask implements IScanService{
    private static final Logger LOGGER= LoggerFactory.getLogger(ScheduleTask.class);

    public void test1(){
        LocalDateTime time = LocalDateTime.now();
        LOGGER.warn("good!good!study!:当前时间="+time.getHour()+"时"+time.getMinute()+"分"+time.getSecond()+"秒");
    }

    public void test2(){
        LocalDateTime time = LocalDateTime.now();
        LOGGER.warn("day!day!UP!!:当前时间="+time.getHour()+"时"+time.getMinute()+"分"+time.getSecond()+"秒");
    }

	@Override
	public void scanTable() {
		LocalDateTime time = LocalDateTime.now();
        LOGGER.warn("Scan Table !:当前时间="+time.getHour()+"时"+time.getMinute()+"分"+time.getSecond()+"秒");
	}

}
